package com.zxl.grocery.modular.schedule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxl.grocery.modular.schedule.entity.ScheduleJobEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 定时任务 Mapper 接口
 * </p>
 *
 * @author zxl
 * @since 2017-08-23
 */
public interface ScheduleJobMapper extends BaseMapper<ScheduleJobEntity> {
    /**
     * 批量更新状态
     */
    int updateBatch(Map<String, Object> map);

    List<ScheduleJobEntity> queryList(Map<String, Object> map);

    ScheduleJobEntity queryObject(Long jobId);

    int queryTotal(Map<String, Object> map);

    void save(ScheduleJobEntity scheduleJob);

    void update(ScheduleJobEntity scheduleJob);

    void deleteBatch(Long[] jobIds);

    List<Map<String, Object>> getAllScheduleJobList(@Param("beanName") String beanName);
}